<template>
  <view>
       <uni-fab
            :pattern="pattern"
            :content="content"
            horizontal="left"
            vertical="bottom"
            direction="vertical"
             @trigger="trigger"
            popMenu="true"
			refs="fab"
        />
  </view>
  
</template>

<script>
import  uniFab  from "./uniFab.vue";
export default {
    components:{
        uniFab
    },
    data(){
        return{
            content:[
					{
						iconPath: '/static/icon/clockin.png',
						selectedIconPath: '/static/icon/clockin.png',
						text: '打卡',
						active: false
					},
					
            ]
        }
    },
	onBackPress() {
		if (this.$refs.fab.isShow) {
			this.$refs.fab.close()
			return true
		}
		return false
	},
	methods: {

			trigger(e) {
				/*var index=e;
				console.log("index的值"+index)
				uni.navigateTo({
					url: '../pages/class/monthStar/index',
					success: res => {},
					fail: () => {console.log(假的)},
					complete: () => {}
				});	*/
				
			},
		}
}
</script>

<style>

</style>